import request from "@/utils/request";

// 查询团队信息列表
export function teamList(query) {
  return request({
    url: "/team/message/teamList",
    method: "get",
    params: query,
  });
}
// 获取等级为五或六的系统用户
export function userList(query) {
  return request({
    url: "/team/message/userList",
    method: "get",
    params: query,
  });
}

// 新增团队
export function addTeam(data) {
  return request({
    url: "/team/message/addTeam",
    method: "post",
    data: data,
  });
}

// 删除团队
export function deleteTeam(ids) {
  return request({
    url: "/team/message/deleteTeam/" + ids,
    method: "delete",
  });
}

// 编辑团队
export function updateTeam(data) {
    return request({
      url: "/team/message/updateTeam",
      method: "post",
      data: data,
    });
  }
